/* --------------------------------------------------
  幅800px以上のスタイル指定 ここから
-------------------------------------------------- */

@media screen and (min-width: 800px) {
  body {
    max-width: 2000px;
    font-family: 'Arial', 'Courier', 'メイリオ', sans-serif;
  }
  a {
    font-size: 14px;
  }
  h2 {
    font-size: 20px;
  }
  .top {
    padding: 10px 5% 0;
  }
  .top-title h2 {
    position: relative;
    padding: 1rem .5rem;
  }
  .top-title h2:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    content: '';
    border-radius: 3px;
    background-image: -webkit-gradient(linear, right top, left top, from(#2af598), to(#009efd));
    background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
    background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
  }
  .top-img-center {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .top-img-left {
    display: flex;
    justify-content: flex-end;
    padding: 5%;
  }
  /* ----- section 調整 -----*/
  .side {
    width: 23%;
    /* 幅指定 */
    float: left;
    /* 要素を並べる */
    text-align: center;
    padding: 5% 1% 2% 1%;
  }
  .main_content {
    width: 75%;
    /* 幅指定 */
    float: left;
    /* 要素を並べる */
    height: auto;
    /* 高さ指定 */
  }
  /* ------ side 調整 (title)------*/
  .side h2 {
    position: relative;
    display: inline-block;
    padding: 0 25px;
  }
  .side h2:before, .side h2:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 20px;
    height: 2px;
    border-top: solid 1px black;
    border-bottom: solid 1px black;
  }
  .side h2:before {
    left: 0;
  }
  .side h2:after {
    right: 0;
  }
  /* ------ side 調整 (list)------*/
  .side-menu-nav {
    text-align: left;
    border-radius: 0px;
    overflow: hidden;
  }
  .side-menu {
    color: #fff;
    background: white;
    padding: .4em .0em;
    font-weight: bold;
  }
  .side-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .side-menu-nav ul li {
    padding: 0;
    margin: 0;
  }
  .side-menu-nav ul li a {
    color: #3F51B5;
    font-weight: bold;
    text-decoration: none;
    display: block;
    border-bottom: 1px dotted #3F51B5;
  }
  /* ------ main_content 調整 ------*/
  .top-title-block {
    width: 100%;
  }
  .top-main-block {
    padding: 2% 2% 0 2%;
  }
  /* --------------------------------------------------
    本文　ここから
-------------------------------------------------- */
  /* --------------------------------------------------
    本文　ここから
-------------------------------------------------- */
 .top-img-center img{
  width: 100%;
  max-width: 500px;
 }

 /* ---table--- */
  .top-table-sub table {
    border: white;
    width: 100%
  }
  .top-table-sub tr td {
    border-bottom: white solid 1px;
  }
  .top-table-sub tr td:nth-of-type(1) {
    width: 33%;
  }
  table {
    width: 100%;
  }
  .top-table tr td:nth-of-type(1):not(.top-table-sub) {
    width: 30%;
  }
  tr td {
    border-bottom: #999 solid 1px;
  }
  .top table {
    border: white;
  }
  .main-conpany-table tr td {
    width: 50%;
  }
  table td {
    padding: 1% 2% 0;
  }
  /* ---主要取引先--- */
  .top-img-center {
    display: flex;
    flex-wrap: wrap;
  }
  .top-img-center li {
    padding: 0 3%;
    box-sizing: border-box;
  }
  ul {
    list-style: none;
  }
  /* ------ 会社写真 ----------*/
  .top-company-img-ul {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    padding: 5vmin 0 0;
  }
  .top-company-img-ul li {
    width: 50%;
    box-sizing: border-box;
  }
  .top-company-img-ul li img {
    width: 100%;
    /*画像のはみだしを防ぐ*/
    max-width: 400px;
    height: auto;
    /*画像の縦横比を維持 */
    max-height: 200px
  }
  /*----- main-company ------*/
  .main-company {
    width: 100%;
  }
  .second-title-block {
    width: 100%;
  }
  .top-img {
    padding: 2% 2% 0 2%;
  }
  .main-conpany-table {
    padding: 2% 2% 0 2%;
  }
  /*----- main-company-enkaku ------*/
  .main-company {
    width: 100%;
  }
  .second-title-block {
    width: 100%;
  }
  .main-conpany-enkaku {
    padding: 2% 2% 0% 2%;
    text-align: center;
  }
  .main-conpany-enkaku table {
    text-align: center;
  }
  .main-conpany-enkaku tr td:nth-of-type(1) {
    white-space: nowrap;
    padding: 0 5% 0 0;
  }
  .top-main-sp {
    display: none;
  }
  /* --------------------------------------------------
  サイド　ボタン
-------------------------------------------------- */
  .btn-sticky {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: #f7f7f7;
    border-left: solid 6px #228bc8;
    /*左線*/
    color: black;
    /*文字色*/
    font-weight: bold;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
  }
  .btn-sticky:active {
    box-shadow: inset 0 0 2px rgba(128, 128, 128, 0.1);
    transform: translateY(2px);
  }
  .btn-sticky:hover {
    background: #CCCCFF;
  }
}
/* --------------------------------------------------
  幅800px以下のスタイル指定 ここから
-------------------------------------------------- */

@media screen and (max-width: 800px) {
  h2 {
    font-size: 20px;
  }
  a {
    font-size: 16px;
  }
  .top {
    padding: 100px 1% 0;
  }
  /* ------side menu title-----*/
  .side-title h2 {
    position: relative;
    padding: 0 20% 0 20%;
  }
  /*-------side menu-------*/
  .side h2 {
    text-align: center;
    padding: 5px;
  }
  .side nav {
    text-align: center;
  }
  .side nav ul {
    margin: 0;
    padding: 0;
  }
  .side nav li {
    list-style: none;
    display: inline-block;
    min-width: 60px;
    padding: 0 5px 0 5px;
  }
  .side nav li:not(:last-child) {
    border-right: 2px solid #ddd;
  }
  .side nav a {
    text-decoration: none;
    color: #333;
  }
  .side nav a.current {
    color: #00B0F0;
    border-bottom: 2px solid #00B0F0;
  }
  .side nav a:hover {
    color: #F7CB4D;
    border-bottom: 2px solid #F7CB4D;
  }
  /*---- top-title -----*/
  .top-title h2 {
    position: relative;
    padding: 1rem 1rem;
  }
  .top-title h2:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    content: '';
    border-radius: 3px;
    background-image: -webkit-gradient(linear, right top, left top, from(#2af598), to(#009efd));
    background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
    background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
  }
  /* ------ main_content 調整 ------*/
  .top-title-block {
    width: 100%;
  }
  .top-main-block {
    padding: 2% 2% 0 2%;
  }
  /* --------------------------------------------------
    本文SP　ここから
-------------------------------------------------- */
  /*----- newstlye ------*/
  .btn-horizontal-border {
    position: relative;
    display: inline-block;
    font-weight: bold;
    padding: 12px 0 8px;
    text-decoration: none;
    color: black;
    width: 100%;
    text-align: center;
    background: rgba(103, 197, 255, 0.1);
    margin: 30px 0;
  }
  .btn-horizontal-border:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    top: 100%;
    left: 0;
    border-radius: 2px;
    background: black;
  }
  .btn-horizontal-border:after {
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    top: 0;
    left: 0;
    border-radius: 2px;
    background: black;
  }
  /*----table------*/
  .top-table {
    width: 100%;
    text-align: center;
  }
  .top-table-sub table {
    border: white;
    width: 100%
  }
  .top-table-sub tr td {
    border: black solid 1px;
    padding: 1%
  }
  .top-table-sub tr td:nth-of-type(1) {
    width: 33%;
    white-space: nowrap;
    /* 勝手に折り返さない */
  }
  .top-table-sub tr td:nth-of-type(2) {
    max-width: 33%;
  }
  .top-table-sub tr td:nth-of-type(3) {
    max-width: 33%;
  }
  thead {
    background: lightblue;
    color: black;
  }
  /*-------取引先----------*/
  .top-img {
    display: flex;
    text-align: center;
  }
  /*-------nonedisplay----------*/
  .top-main {
    display: none;
  }
   .kojyo img{
    width: 80%;
    max-width: 400px;
   }
}



@media print{

  body {
    font-family: 'Arial', 'Courier', 'メイリオ', sans-serif;
  }
  a {
    font-size: 14px;
  }
  h2 {
    font-size: 20px;
  }
  .top {
    padding: 10px 5% 0;
  }
  .top-title h2 {
    position: relative;
    padding: 1rem .5rem;
  }
  .top-title h2:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    content: '';
    border-radius: 3px;
    background-image: -webkit-gradient(linear, right top, left top, from(#2af598), to(#009efd));
    background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
    background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
  }
  .top-img-center {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .top-img-left {
    display: flex;
    justify-content: flex-end;
    padding: 5%;
  }
  /* ----- section 調整 -----*/
  .side {
    width: 23%;
    /* 幅指定 */
    float: left;
    /* 要素を並べる */
    text-align: center;
    padding: 5% 1% 2% 1%;
  }
  .main_content {
    width: 75%;
    /* 幅指定 */
    float: left;
    /* 要素を並べる */
    height: auto;
    /* 高さ指定 */
  }
  /* ------ side 調整 (title)------*/
  .side h2 {
    position: relative;
    display: inline-block;
    padding: 0 25px;
  }
  .side h2:before, .side h2:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 20px;
    height: 2px;
    border-top: solid 1px black;
    border-bottom: solid 1px black;
  }
  .side h2:before {
    left: 0;
  }
  .side h2:after {
    right: 0;
  }
  /* ------ side 調整 (list)------*/
  .side-menu-nav {
    text-align: left;
    border-radius: 0px;
    overflow: hidden;
  }
  .side-menu {
    color: #fff;
    background: white;
    padding: .4em .0em;
    font-weight: bold;
  }
  .side-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .side-menu-nav ul li {
    padding: 0;
    margin: 0;
  }
  .side-menu-nav ul li a {
    color: #3F51B5;
    font-weight: bold;
    text-decoration: none;
    display: block;
    border-bottom: 1px dotted #3F51B5;
  }
  /* ------ main_content 調整 ------*/
  .top-title-block {
    width: 100%;
  }
  .top-main-block {
    padding: 2% 2% 0 2%;
  }
  /* --------------------------------------------------
    本文　ここから
-------------------------------------------------- */
  /* --------------------------------------------------
    本文　ここから
-------------------------------------------------- */
 .top-img-center img{
  width: 100%;
  max-width: 500px;
 }

 /* ---table--- */
  .top-table-sub table {
    border: white;
    width: 100%
  }
  .top-table-sub tr td {
    border-bottom: white solid 1px;
  }
  .top-table-sub tr td:nth-of-type(1) {
    width: 33%;
  }
  table {
    width: 100%;
  }
  .top-table tr td:nth-of-type(1):not(.top-table-sub) {
    width: 30%;
  }
  tr td {
    border-bottom: #999 solid 1px;
  }
  .top table {
    border: white;
  }
  .main-conpany-table tr td {
    width: 50%;
  }
  table td {
    padding: 1% 2% 0;
  }
  /* ---主要取引先--- */
  .top-img-center {
    display: flex;
    flex-wrap: wrap;
  }
  .top-img-center li {
    padding: 0 3%;
    box-sizing: border-box;
  }
  ul {
    list-style: none;
  }
  /* ------ 会社写真 ----------*/
  .top-company-img-ul {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    padding: 5vmin 0 0;
  }
  .top-company-img-ul li {
    width: 50%;
    box-sizing: border-box;
  }
  .top-company-img-ul li img {
    width: 100%;
    /*画像のはみだしを防ぐ*/
    max-width: 400px;
    height: auto;
    /*画像の縦横比を維持 */
    max-height: 200px
  }
  /*----- main-company ------*/
  .main-company {
    width: 100%;
  }
  .second-title-block {
    width: 100%;
  }
  .top-img {
    padding: 2% 2% 0 2%;
  }
  .main-conpany-table {
    padding: 2% 2% 0 2%;
  }
  /*----- main-company-enkaku ------*/
  .main-company {
    width: 100%;
  }
  .second-title-block {
    width: 100%;
  }
  .main-conpany-enkaku {
    padding: 2% 2% 0% 2%;
    text-align: center;
  }
  .main-conpany-enkaku table {
    text-align: center;
  }
  .main-conpany-enkaku tr td:nth-of-type(1) {
    white-space: nowrap;
    padding: 0 5% 0 0;
  }
  .top-main-sp {
    display: none;
  }
  /* --------------------------------------------------
  サイド　ボタン
-------------------------------------------------- */
  .btn-sticky {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: #f7f7f7;
    border-left: solid 6px #228bc8;
    /*左線*/
    color: black;
    /*文字色*/
    font-weight: bold;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
  }
  .btn-sticky:active {
    box-shadow: inset 0 0 2px rgba(128, 128, 128, 0.1);
    transform: translateY(2px);
  }
  .btn-sticky:hover {
    background: #CCCCFF;
  }
}